package com.code.day02;

public class Test2 {
    public static void main(String[] args) {

        //取值范围大与取值范围小运算后转换成取值范围大的数据类型
        int i1 = 100;
        long l1 = 100;
        long add = i1 + l1;
        System.out.println("add值为："+add);
        System.out.println("====================================");

        long l2 = 200;
        float f2 = 100.0f;
        float add2 = l2 + f2;
        System.out.println("add2值为："+add2);

        System.out.println("====================================");

        int i3 = 300;
        double d3 = 2.5;
        double add3 = i3 + d3;
        System.out.println("add3值为："+add3);
        System.out.println("====================================");

        float f4 = 10.0f;
        double d4 = 2.599999999;
        double add4 = f4 + d4;
        System.out.println("add4值为："+add4);
    }
}
